package hnlg.com.cn.hetongmanage.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import hnlg.com.cn.model.HetongVo;

@Mapper
public interface HetongMapper {
public boolean addHetong(HetongVo vo)throws Exception;
public boolean deleteHetong(String id)throws Exception;
public List<HetongVo>  queryHetong(HetongVo vo)throws Exception;
public boolean updateHetong(HetongVo vo)throws Exception;
public HetongVo queryvo(String id)throws Exception;
/*对于多个参数来说，每个参数之前都要加上@Param注解
 * 要不然会找不到对应的参数进而报错:注解里面的名称才是sql配置文件中要引用的变量名称
 */
public List<HetongVo>  queryByMultiplePara(
		@Param("jzmc88")String jzmc,
		@Param("quyu_id88")String quyu_id,
		@Param("yzdh88") String yzdh)throws Exception;
//用hashmap传参数，hashmap中的key与sql文件中的：#{}一一对应
//用hashmap中的值替换占位符#{}
public List<HetongVo>  queryByHashMapPara(HashMap map)throws Exception;
}
